/**
 * <pre>
 * Title: 		Message.java
 * Project: 	IssueMock
 * Author:		linriqing
 * Create:	 	2009-6-19 下午04:13:43
 * Copyright: 	Copyright (c) 2009
 * Company:		Shenzhen Helper
 * <pre>
 */
package com.hengpeng.common.monitor;

import java.io.Serializable;
import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;

/**
 * <pre>
 * 系统消息
 * </pre>
 * @author linriqing
 * @version 1.0, 2009-6-19
 */
public class Message implements Serializable
{
	private static final long serialVersionUID = 6233244170472635602L;

	private static final AtomicLong messageIdCount = new AtomicLong();

	private String detail;

	private long id;

	private Date occurTime;

	private String summary;

	public Message(Date occurTime, String summary, String detail)
	{
		this.id = messageIdCount.incrementAndGet();
		this.occurTime = occurTime;
		this.summary = summary;
		this.detail = detail;
	}

	public String getDetail()
	{
		return detail;
	}

	public long getId()
	{
		return id;
	}

	public Date getOccurTime()
	{
		return occurTime;
	}

	public String getSummary()
	{
		return summary;
	}
}
